package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserManagerDao {
    public void add(User user);
   public void setUserAndRole(Map<String, Integer> map);
    public User findById(Integer id);
    public void edit(User user);
    public void deleteAssociation(Integer checkgroupId);
    public List<User> findAll();
   public Page<User> findByCondition(String queryString);
    public List<Integer> findCheckItemIdsByCheckGroupId(Integer userId);
    public long selectCountByCheckItemId(Integer userId);
    public void deleteById(Integer id);
}
